package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单SLA触发条件表
 * </p>
 *
 * @author WEN
 * @since 2024-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkSlaCondition对象", description="工单SLA触发条件表")
public class ZjWorkSlaCondition implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "工单SLA表ID")
    private Long workSlaId;

    @ApiModelProperty(value = "条件类型：1-未分配客服，2-未派单，3-服务商未接单，4-工程师未接单，5-工程师未拨打电话，6-工程师未预约，7-工程师未签到")
    private Integer type;

    @ApiModelProperty(value = "是否开启：0-否，1-是")
    @TableField("is_enabled")
    private Boolean enabled;

    @ApiModelProperty(value = "时效，单位小时，当is_enabled=1时生效")
    private Integer ageingTime;

    @ApiModelProperty(value = "是否启用超时前提醒：0-否，1-是")
    @TableField("is_enable_before_over_time_remind")
    private Boolean enableBeforeOverTimeRemind;

    @ApiModelProperty(value = "超时前提醒时间，单位小时")
    private Integer beforeOverTimeRemindTime;

    @ApiModelProperty(value = "超时前提醒人员类型：1-工单客服，2-指定人员，3-服务商负责人，4-工程师")
    private String beforeOverTimeRemindEmpType;

    @ApiModelProperty(value = "是否启用超时后提醒：0-否，1-是")
    @TableField("is_enable_after_over_time_remind")
    private Boolean enableAfterOverTimeRemind;

    @ApiModelProperty(value = "超时后提醒时间，单位小时")
    private Integer afterOverTimeRemindTime;

    @ApiModelProperty(value = "超时后提醒人员类型：1-工单客服，2-指定人员，3-服务商负责人，4-工程师")
    private String afterOverTimeRemindEmpType;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
